Skip to content

add hitTestEdgeInsets property for making the hit area larger than the default hit area#8

Open
Sashke wants to merge 1 commit into
mrcrow:masterfrom
Sashke:add_hitTestInsets
Open

add hitTestEdgeInsets property for making the hit area larger than the default hit area#8
Sashke wants to merge 1 commit into
mrcrow:masterfrom
Sashke:add_hitTestInsets

Conversation

@Sashke

@Sashke Sashke commented Aug 21, 2014

Copy link
Copy Markdown

if you want to make the hit area larger, you must use negative numbers

[button setHitTestEdgeInsets:UIEdgeInsetsMake(-10, -10, -10, -10)];

@mrcrow

mrcrow commented Aug 28, 2014

Copy link
Copy Markdown
Owner

@Sashke , I don't think this is worth to add in the repo, could you please provide me a case?

@Sashke

Sashke commented Aug 28, 2014

Copy link
Copy Markdown
Author

Look at round buttons in Yahoo News Digest app. It have larger hit area then it appears. Without it many users with big fingers misses when pressing it.
Sorry for my english

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants